<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/7/21
 * Time: 下午9:04
 */
namespace PddWechat\Models\User\Service;

use Dai\Framework\Base\BaseService;
use Dai\Framework\Base\BaseSessionInfo;
use PddWechat\Library\WechatLibrary;
use PddWechat\Models\User\Param\SubscribeParam;

class Subscribe extends BaseService {

    public function execute($basePageInfo)
    {
        /** @var BaseSessionInfo $sessionData */
        $sessionData = $basePageInfo->sessionInfo;
        $subscribeInfo = WechatLibrary::getSubscribe($sessionData->openId);
        return $subscribeInfo;
    }
}